package com.egao.orderB.service;

import com.egao.common.core.damon.results.PageResult2;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import com.egao.orderB.entity.Customer;
import com.egao.orderB.entity.CustomerCopy;
import org.apache.poi.ss.formula.functions.T;

/**
 * 货代管理服务类
 * @author : Doman
 * @date : 2020-06-02 13:34:13
 * @version ：1.0
 */
public interface CustomerService /*extends IService<Customer>*/ {

    /**
     * 分页查询
     */
    //PageResult<Customer> listPage(PageParam<Customer> page);

    /**
     * 查询所有
     */
    //List<Customer> listAll(Map<String, Object> page);

    /**
	 * 分页查询
	 * @param page
	 * @param customer
	 * @return
	 */
	public JsonResult list(PageResult2<T> page, Customer customer, User loginUser) throws Exception;

	/**
	 * 获取list
	 * @param customer
	 * @return
	 */
	public JsonResult list(Customer customer, User loginUser);

	/**
	 * 根据Id查询
	 * @param customer
	 * @return
	 */
	public Customer getById(Customer customer);

	/**
	 * 根据Id查询
	 * @param customer
	 * @return
	 */
	public JsonResult getByName(Customer customer);

	/**
	 * 保存
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult save(Customer customer, User loginUser);

	/**
	 * 保存
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult ApiSaveWidthMessageCode(CustomerCopy customer, User loginUser, User user) throws Exception;

	/**
	 * 保存
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult ApiSave(CustomerCopy customer, User loginUser, User user) throws Exception;

	/**
	 * 修改
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Customer customer, User loginUser);

	/**
	 * 修改
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult updateInvoiceState(Customer customer, User loginUser);

	/**
	 * 修改
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult updateMessage(Customer customer, User loginUser);

	/**
	 * 修改
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult updateGzhSend(Customer customer, User loginUser);

	/**
	 * 删除
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult remove(Customer customer, User loginUser);
	/**
	 * 删除
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult examine(Customer customer, User loginUser);
	/**
	 * 删除
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public JsonResult examineFail(Customer customer, User loginUser);
}
